package me.healthcare.webserivce;

import android.util.Log;

public class LoginService {

	private String email;
	private String password;
	private long id = -1;
	private String executeURL;
	private final String PATIENT_URL = "/sworldwebservice/sworld/auth/loginPatients";
	private final String DOCTOR_URL = "/sworldwebservice/sworld/auth/loginApp";

	public long patientLogin(String email, String password) {
		this.email = email;
		this.password = password;
		executeURL = PATIENT_URL;
		Log.d("PASS", "patientLogin " + email + " " + password);
		runJson();
		Log.d("ERROR", id + " before end");
		return id;
	}

	public long doctorLogin(String email, String password) {
		this.email = email;
		this.password = password;
		executeURL = DOCTOR_URL;
		runJson();
		return id;
	}

	private void runJson() {
		new Thread(new Runnable() {
			@Override
			public void run() {
				try {
					
				} catch (Exception ex) {
					ex.printStackTrace();
				}
			}
		}).start();
	}
}
